package com.hd123.rumba.util.lunar;

/** 自定义星期类 */
public class WeekDay {
  int iWeekDay;
  private String sWeekDay[] = {
      "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };

  public WeekDay() {
    iWeekDay = 0;
  }

  public WeekDay(int w) {
    if ((w > 6) || (w < 0)) {
      System.out.println("Week out of range, I think you want Sunday");
      this.iWeekDay = 0;
    } else
      this.iWeekDay = w;
  }

  public String toString() {
    return sWeekDay[iWeekDay];
  }
}
